package com.ruoyi.jiuzai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiuzai.mapper.WuzibaofeiMapper;
import com.ruoyi.jiuzai.domain.Wuzibaofei;
import com.ruoyi.jiuzai.service.IWuzibaofeiService;

/**
 * 物资报废Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class WuzibaofeiServiceImpl implements IWuzibaofeiService 
{
    @Autowired
    private WuzibaofeiMapper wuzibaofeiMapper;

    /**
     * 查询物资报废
     * 
     * @param baoId 物资报废主键
     * @return 物资报废
     */
    @Override
    public Wuzibaofei selectWuzibaofeiByBaoId(Long baoId)
    {
        return wuzibaofeiMapper.selectWuzibaofeiByBaoId(baoId);
    }

    /**
     * 查询物资报废列表
     * 
     * @param wuzibaofei 物资报废
     * @return 物资报废
     */
    @Override
    public List<Wuzibaofei> selectWuzibaofeiList(Wuzibaofei wuzibaofei)
    {
        return wuzibaofeiMapper.selectWuzibaofeiList(wuzibaofei);
    }

    /**
     * 新增物资报废
     * 
     * @param wuzibaofei 物资报废
     * @return 结果
     */
    @Override
    public int insertWuzibaofei(Wuzibaofei wuzibaofei)
    {
        return wuzibaofeiMapper.insertWuzibaofei(wuzibaofei);
    }

    /**
     * 修改物资报废
     * 
     * @param wuzibaofei 物资报废
     * @return 结果
     */
    @Override
    public int updateWuzibaofei(Wuzibaofei wuzibaofei)
    {
        return wuzibaofeiMapper.updateWuzibaofei(wuzibaofei);
    }

    /**
     * 批量删除物资报废
     * 
     * @param baoIds 需要删除的物资报废主键
     * @return 结果
     */
    @Override
    public int deleteWuzibaofeiByBaoIds(Long[] baoIds)
    {
        return wuzibaofeiMapper.deleteWuzibaofeiByBaoIds(baoIds);
    }

    /**
     * 删除物资报废信息
     * 
     * @param baoId 物资报废主键
     * @return 结果
     */
    @Override
    public int deleteWuzibaofeiByBaoId(Long baoId)
    {
        return wuzibaofeiMapper.deleteWuzibaofeiByBaoId(baoId);
    }
}
